/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.quangtin3.mb;

import java.io.Serializable;
import java.util.List;
import javax.ejb.EJB;
import javax.enterprise.context.SessionScoped;
import javax.inject.Named;
import org.quangtin3.entity.Collection;
import org.quangtin3.sb.CollectionFacade;

/**
 *
 * @author Quang
 */
@Named(value = "collectionManager")
@SessionScoped
public class CollectionManager implements Serializable {

    @EJB
    private CollectionFacade collectionFacade;

    /**
     * Creates a new instance of UserManager
     */
    public CollectionManager() {
    }

    public List<Collection> getItems() {
        return collectionFacade.findAll();
    }
}
